<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>会员中心 - 首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<css file="__PUBLIC__/css/member.css"/>
<jquery/>
<jsconst/>
<js file="__PUBLIC__/js/mima.js"/>
<script language="javascript">
function checkSubmit()
{
  if(document.form2.oldpwd.value=='')
  {
    document.form2.oldpwd.focus();
    alert("旧密码必须填写！");
    return false;
  }
  if(document.form2.userpwdok.value!=document.form2.password.value)
  {
    document.form2.userpwdok.focus();
    alert("两次密码不一致！");
    return false;
  }
  if(document.form2.email.value=="")
  {
    document.form2.email.focus();
    alert("Email不能为空！");
    return false;
  }
  if(document.form2.vdcode.value=="")
  {
    document.form2.vdcode.focus();
    alert("验证码不能为空！");
    return false;
  }
}
</script>
</head>
<body>
<include file="__PUBLIC__/header.html">
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
       <include file="__PUBLIC__/left.html">   
       <div class="dedeMain">
        <div class="location">设置基本资料</div>
        <form class="mTB10 mL10 mR10" name="form2" action="__CONTROL__/change" method="post" onsubmit="return checkSubmit();">
          <input type="hidden" name="userid" value="{$user.userid}" />
          <table class="submit" cellspacing="1">
            <tbody>
              <tr class="row1">
                <td align="right" width="15%" valign="top">用户名：</td>
                <td>{$user.username}</td>
              </tr>
              <tr class="row0">
                <td align="right" valign="top"><span class="tdl">原登陆密码：</span></td>
                <td><input name="oldpwd" id="oldpwd" size="20" class="text" type="password">
                  <span style="color:red;">*</span></td>
              </tr>
              <tr class="row1">
                <td align="right" valign="top"><span class="tdl">新密码：</span></td>
                <td><input name="password" id="userpwd" size="20" class="text" type="password">
                  <span id="_userpwdok">(不修改密码请保留此项为空)</span></td>
              </tr>
              <tr class="row0">
                <td align="right" valign="top">确认新密码：</td>
                <td><span class="tdr">
                  <input name="userpwdok" id="userpwdok" value="" size="20" class="text" type="password">
                  <span id="_userpwdok2">(不修改密码请保留此项为空)</span> </span></td>
              </tr>
              
              <tr class="row1">
                <td align="right" valign="top"><span class="tdl">电子邮箱：</span></td>
                <td><span class="tdr">
                  <input name="email" id="email" class="text" value="{$user.email}" type="text">
                  * <span id="_email">(每个电子邮邮箱只能注册一个帐号，要修改电子邮箱必须填写正确安全问题的答案)</span> </span></td>
              </tr>
              <tr class="row1">
                <td align="right" valign="top"><span class="tdl">验证码：</span></td>
                <td><input name="vdcode" id="vdcode" style="width:50px;text-transform:uppercase;" class="text" type="text">
                  <img id="getCode" src="__APP__/login/getCode" align="absmiddle" height="30" width="80" style="cursor:pointer"></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">更新</button>
                  <!-- <button class="button2 mL10" type="reset">重设</button> -->
                </td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<include file="__PUBLIC__/foot.html">
</body></html>